package shapes;

import java.awt.Color;
import java.awt.Graphics;

import trajectories.Trajectory;

public class Square extends Shape {

    public Square(int x, int y, Color color, Trajectory trajectory) {
        this.xPos = x;
        this.yPos = y;
        this.color = color;
        this.trajectory = trajectory;

    }

    @Override
    public void paintComponent(Graphics g) {
        g.setColor(this.color);
        g.drawRect(xPos, yPos, getWidth(), getHeight());
        g.fillRect(xPos, yPos, getWidth(), getHeight());
    }

}
